
<?php
$leftMenu = Blyn::app()->getAppUI()->getMenu(BUIBlyn::LEFTMENU);

//array_push($leftMenu['items'],array('label'=>'test join'));

$items = $leftMenu['items'];
/*
  $this->widget('bootstrap.widgets.TbMenu', array(
  'type' => 'list',
  'items' => $leftMenu['items']))
 * 
 */
?>

<ul class="nav nav-list">
    <?php
    foreach ($items as $item) {
        $itemText = $item['label'];
        $class = '';
        //$class = isset($item['active']) && $item['active'] ? 'active' : '';
        if (isset($item['ajaxUrl']))
            $itemText = $item['ajaxUrl'];
        else {
            $class = 'nav-header';
        }
        ?>
        <li class='<?php echo $class; ?>'>
            <?php echo $itemText; ?>
        </li>  
    <?php } ?>
</ul>